package com.aidong.videoComment.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.videoComment.biz.TrnVideoCommentBiz;
import com.aidong.videoComment.dao.TrnVideoCommentDao;
import com.aidong.videoComment.entity.TrnVideoComment;
import com.aidong.videoComment.entity.VideoComment;


@Service("trnVideoCommentBiz")
public class TrnVideoCommentBizImpl implements TrnVideoCommentBiz {
	
	private TrnVideoCommentDao trnVideocommentDao;

	@Autowired
	public void setTrnVideoCommentDao(TrnVideoCommentDao trnVideocommentDao) {
		this.trnVideocommentDao = trnVideocommentDao;
	}

	@Override
	public int addVideoComment(TrnVideoComment videoComment) {
		return trnVideocommentDao.addVideoComment(videoComment);
	}
	
	/**
	 * 评论列表
	 * @return
	 */
	@Override
	public List<VideoComment> getVideoCommentlList(Map<String,Object> map){
		return trnVideocommentDao.getVideoCommentlList(map);
	}
}